<!doctype html>
<html class="no-js fixed-layout">
<head>
  <#include "head.ftl">
</head>
<body>
<#include "header.ftl">


<#include "menu.ftl">

  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding">
         <ol class="am-breadcrumb">
		  <li><a href="${info.domain}" class="am-icon-home">首页</a></li>
		  <li><a href="${info.domain}web">网站</a></li>
		  <li><a href="${info.domain}web/outvalueurl/${web.id}">${web.name}有效网址</a></li>
		  <li class="am-active">编辑网址</li>
		</ol>
		<a href="${info.domain}web/outvalueurl/${web.id}" type="button" class="am-fr am-btn am-btn-default am-btn-sm">返回</a>
     
      </div>

    

<div class="am-g">
 
    <form action="${info.domain}api/updateoutvalueurl" class="am-form am-form-horizontal" id="outvalueurl-add-form" method="POST">
    	
    	 <input type='hidden'  name="id"   value="${outvalueurl.id}">
            

            <div class="am-form-group">
              <label class="am-u-sm-12 am-u-md-2 am-form-label">URL地址</label>
              <div class="am-u-sm-12 am-u-md-10">
                <input type="text" class="am-input-sm" name="url"  value="${outvalueurl.url}" placeholder="URL地址">
              </div>
            </div>

              <div class="am-form-group">
              <label for="user-weibo" class="am-u-sm-12 am-u-md-2 am-form-label">是否循环</label>
              <div class="am-u-sm-12 am-u-md-10">
                <label class="am-switch">
                    <input name="type" type="checkbox" value="1" <#if outvalueurl.type ==1> checked </#if>>
                    <span class="am-switch-checkbox"></span>
                </label>
              </div>
            </div>
           

            <div class="am-form-group">
              <div class="am-u-sm-12 am-u-md-10 am-u-md-push-2">
                <button type="submit" class="am-btn am-btn-primary">保存修改</button>
              </div>
            </div>
 </form>   
        
                
</div>


</div>
 
 <#include "footer.ftl">
<script src="${info.domain}common/js/jquery.form.min.js"></script> 
 <script type="text/javascript">
                            var $loading;
                            $('#outvalueurl-add-form').ajaxForm({
							    beforeSubmit: function(a,f,o) {
							    $loading = AMUI.dialog.loading();
							    },
							    success: function(json) { 
							     $loading.modal('close');  
							    	if(!json.status){
							    	  
							    		AMUI.dialog.alert({content: json.msg});//提示消息		
							    		
							    	}else{	   
							    		location.href="${info.domain}web/outvalueurl/${web.id}";	
									}
							    }
							});
							//-->
</script> 
    

</body>
</html>
